package org.openmore.platform.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel("微信小程序登录/注册模型")
public class WechatMiniApp {

    @ApiModelProperty(value="小程序返回的加密数据")
    private String encryptedData;

    @ApiModelProperty(value="小程序返回的iv")
    private String iv;

    @ApiModelProperty(value="小程序返回的原始数据")
    private String rawData;

    @ApiModelProperty(value="小程序返回的签名")
    private String signature;

    @ApiModelProperty(value="小程序返回的验证码")
    private String code;

    @ApiModelProperty(value="渠道码：如果以BD_开头，表示是一个BD的分享，如果为空，表示用户直接小程序注册，如果为其它，表示一个渠道代理的分享")
    private String channelId;

    @ApiModelProperty(value="当前设备系统")
    private String equipmentSystem;

    @ApiModelProperty(value="当前设备名")
    private String equipmentName;

    @ApiModelProperty(value="当前小程序版本")
    private String appVersion;

    @ApiModelProperty(value="当前设备唯一识别码")
    private String deviceToken;
    @ApiModelProperty(value="当前设备唯一识别码")
    private String wechatPhone;

//    private Equipment device;

    public String getEncryptedData() {
        return encryptedData;
    }

    public String getSignature() {
        return signature;
    }

    public void setSignature(String signature) {
        this.signature = signature;
    }

    public void setEncryptedData(String encryptedData) {
        this.encryptedData = encryptedData;
    }

    public String getChannelId() {
        return channelId;
    }

    public void setChannelId(String channelId) {
        this.channelId = channelId;
    }

    public String getRawData() {
        return rawData;
    }

    public String getEquipmentSystem() {
        return equipmentSystem;
    }

    public void setEquipmentSystem(String equipmentSystem) {
        this.equipmentSystem = equipmentSystem;
    }

    public String getEquipmentName() {
        return equipmentName;
    }

    public void setEquipmentName(String equipmentName) {
        this.equipmentName = equipmentName;
    }

    public String getAppVersion() {
        return appVersion;
    }

    public void setAppVersion(String appVersion) {
        this.appVersion = appVersion;
    }

    public String getDeviceToken() {
        return deviceToken;
    }

    public void setDeviceToken(String deviceToken) {
        this.deviceToken = deviceToken;
    }

    public void setRawData(String rawData) {
        this.rawData = rawData;
    }

    public String getCode() {
        return code;
    }

    public String getIv() {
        return iv;
    }

    public void setIv(String iv) {
        this.iv = iv;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getWechatPhone() {
        return wechatPhone;
    }

    public void setWechatPhone(String wechatPhone) {
        this.wechatPhone = wechatPhone;
    }

    @Override
    public String toString() {
        return "WechatMiniApp{" +
                "encryptedData='" + encryptedData + '\'' +
                ", iv='" + iv + '\'' +
                ", rawData='" + rawData + '\'' +
                ", signature='" + signature + '\'' +
                ", code='" + code + '\'' +
                ", channelId='" + channelId + '\'' +
                ", equipmentSystem='" + equipmentSystem + '\'' +
                ", equipmentName='" + equipmentName + '\'' +
                ", appVersion='" + appVersion + '\'' +
                ", deviceToken='" + deviceToken + '\'' +
                ", wechatPhone='" + wechatPhone + '\'' +
                '}';
    }
}
